from machine import UART
from wifiat import at
import time
recv_buf=""

'''
pico 连接wsp8266,

esp8266  |  pico
-----------------
3v3  
EN          3v3 
GND         GND
GP0         RX
GP1         TX
'''
uart = UART(0,115200)
AT = at(uart)
print('-----info-----')
AT.info()
print('-----info-----')
AT.netinfo()
#AT.connect("ssid","passwd.")
#AT.netinfo()
c = AT.http('http://httpbin.org/get')
#c = AT.http('http://192.168.0.109/get')
#c = AT.http('http://192.168.0.109/post',method="POST")
#AT.sendCMD_waitResp("AT\r\n")
#AT.sendCMD_waitRespLine('AT\r\n')
